import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';

export class CreateRoleDto {
  @ApiProperty({
    description: '角色名称',
  })
  @IsString()
  name: string;
  @ApiProperty({
    description: '角色Code',
  })
  @IsString()
  code: string;
  @ApiProperty({
    description: '角色描述',
  })
  @IsString()
  description: string;
}
